package com.bawei.lib_net.intercepteor

import com.bawei.lib_storage.AppMMKV
import okhttp3.Interceptor
import okhttp3.Response

class HttpHeadInterceptor:Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val original = chain.request()
        val accessId:String = AppMMKV.accessid
        val token:String = AppMMKV.token
        val request = original.newBuilder()
            .addHeader("accessId","89c13df9ef6f48a5ae7cf382c120daff")
            .addHeader("token","1")
            .build()
        return chain.proceed(request)
    }
}